﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace LdtJudge.DataEngine.Model.XMLConfigModel.ConfigModel
{
    /// <summary>
    /// 庭次配置
    /// </summary>
    [Serializable]
    [XmlRootAttribute("root", IsNullable = false)]
    public class NumberConfigModel
    {
        /// <summary>
        /// 案件类型与文书类型模型
        /// </summary>
        [XmlElementAttribute("casetype", IsNullable = false)]
        public List<CaseTypeConfig> caseTypeConfigList = new List<CaseTypeConfig>();
    }
    /// <summary>
    /// 案件文书
    /// </summary>
    public class CaseTypeConfig
    {
        /// <summary>
        /// 案件类型
        /// </summary>
        [XmlAttribute("value")]
        public string value { get; set; }
        /// <summary>
        /// 文书类型编号
        /// </summary>
        [XmlAttribute("booktype")]
        public string booktype { get; set; }
        /// <summary>
        /// 庭次条件实体
        /// </summary>
        [XmlElementAttribute("targetData", IsNullable = false)]
        public List<TtargetDataConfig> typedReferenceList = new List<TtargetDataConfig>();
    }
    /// <summary>
    /// 庭次计算条件
    /// </summary>
    public class TtargetDataConfig
    {
        /// <summary>
        /// 路径
        /// </summary>
        [XmlAttribute("xmlpath")]
        public string Xmlpath { get; set; }

        /// <summary>
        /// 开庭时间
        /// </summary>
        [XmlAttribute("OpeningTime")]
        public string OpeningTime { get; set; }

        /// <summary>
        /// 庭次
        /// </summary>
        [XmlAttribute("number")]
        public string Number { get; set; }
        /// <summary>
        /// 结果集
        /// </summary>
        [XmlElementAttribute("ResultData", IsNullable = false)]
        public List<ResultDataConfig> resultDataConfigList = new List<ResultDataConfig>();
    }

    /// <summary>
    /// 结果集
    /// </summary>
    public class ResultDataConfig
    {
        /// <summary>
        /// 路径
        /// </summary>
        [XmlAttribute("xmlpath")]
        public string Xmlpath { get; set; }

        /// <summary>
        /// 庭次
        /// </summary>
        [XmlAttribute("number")]
        public string Number { get; set; }

    }
}
